fix gravity measurement error