fix moving bug