fix reference to gravity