Side scroller grab issue

I recently added a wall climbing function to my project using this tutorial 💢 UE4 Climb System - Tutorial - Part 1 - Grab & Climb-Up - YouTube but his lesson for third person and my project side scroller. Everything works fine but sometimes bugs happen.After Grab my character teleports 90 degrees or 180 degrees back if behind the wall is equal in height to the one I am trying to climb

][1]