fix bug where hasShip data-id overwrites itself