How can I get the AI to avoid each other (and the player)

I just tried this but my ais are having trouble. They have started to avoid my character, but they are also getting stuck still and trying to squeeze past the player even when there is no room for them to pass.