PieceType fix