as a practical matter , riley was perfectly correct , and it was his right as the ship 's captain to decide where the passengers might be at liberty ; but yongxing 's threat had made the matter a question of principle .