gravity bug fix