Fix a bug that prevents movement