fixed backwards movement (thanks @xianm!)