fixed bug that prevented movement