Passing through static mesh in flying movement mode

If you simply switch to fly mode it should collide with other meshes normally. Situation when it passes through will appear if pawn have no input.

I am receiving an issue where my actor just passes through other meshes like walls and stairs when it is in flying movement mode but when it is in a falling or walking movement mode collides and stops as it should. I am not sure the reasoning behind this so any hints would be greatly appreciated.

I figured out the issue. It was because I am using a Move Component To node which is causing my object to go through objects. So what I did was create a trace that determines first if the player is too close to a wall to initiate the move component to then while it is moving it is tracing to determine if there is an object or wall in front of the player and when it is traced it stops the player immediately.