Pathfinder object interacting with obstacles incorrectly

hello, i am making a 3D first person game that uses an object (enemy) that follows the player.
but for some reason, the object ignores the obstacles partially. its like the collision of the obstacle is offset for the enemy


i have tried using the navmesh pathfinding instead but im still having this issue.
(sorry for bad english)