bugfix gravity