A New Zealand-bound plane flew for 13 hours only to land where it took off.