fixed a bug with moves