Fixed one cause of acceleration bug

Fixed one cause of acceleration bug.
There are still more fixed to be made.