Fixed a bug with allowedNoGravityTime