bugfixes on pieceSelection