Fixed some issues with the vessel simulation.