Fixing crash when player falls into a hole