fixed bug with acceleration and deltatime