bug fix of acceleration computation