Fixing scaling and selected piece.