# ACharacter falls instead of landing back at its starting point when jumping at the edge of a ledge

I’m using ACharacter class for a 2D platformer game in Unreal 4.26.

When the pawn (the main character) starts to jump from a the very edge of a ledge, it’s not able to land in the same position. Instead it falls past its starting point. I attached a video to show you what I mean:

VIDEO

The PerchRadiusThreshold parameter is set to 0 and CanWalkOffLedges is set to true. How can I change the behavior of the character when it lands in these situations?