I've had this bug a few times now and have not completely narrowed it down. However, I'm pretty sure it's linked to some of the structures placed on the ship, most likely the resource chest because of its link to the parts of the ship. Try demolishing some of the key building structures like the smithy etc.