Minor fixes to gravity.