Fixed bug preventing movement