fixed bug preventing forward movement