fixed gravity handling in acceleration initialization