Nav Mesh in my 2D game

I had recently made the ai for my enemy but whenever I put the nav mesh in my level it constraints my ai from moving towards the player. Is there any way I could fix this?