fix new pirate bug