docking fix

This (hopefully) fixes the ship crashing during dock problem.