Fixed bug where ship segments were being created incorrectly