prevent crashing when no ship is present