I did something similar, tried to click when the ship was at an 90 degree angle to the line connecting the planet to the next.