Fixing player inertia bug