fixing bugs movements