Fixed wrong acceleration bug