navmesh agents goes inside objects and walls!!

Hi, i have a strange problem. i created some walls in my scene made them static and baked my scene. added a navmesh agent to the enemy character but when it is walking near the walls it’s goes inside the walls. pics are below.
and i’m using a 2d sprite that looks at camera for my enemy.



Is there a collider on the cube?

yes it has mesh collider (i made boxes with prototype)

Does the navmesh recognize the colliders you placed?