AI Stuck on doors corner

Thank you for your reply. I agree on the simple solution and my another idea would be making the door detect if an AI is passing through it to decide whether it can be closed or not.