Navmeshagent goes through Kinematic rigidbodies

I am using a navmeshagent component to move my player around and my doors use hingejoints to open and close (so they have rigidbodies). I gave my player a rigidbody too so they can interact with the doors. But the problem is if i lock the doors in place by using isKinematic, the player just walks right through the door even though collision did work when opening the door.

Does anyone know how to solve this problem?
Thank you!

Make sure you attach the NAvmesh Obstacle script!