Fix bug in Rarest First Piece Selection