Fixed an error causing gravity to not lock
Fixed an error with locking gravity