Fix hasShip method