fix moving crash