Correct logic for gravity offset