Collider not stoping the object second time

Hi! I’ve attached a box collider & rigid body to two objects, first name character which has a rigid body “is Kinematic” no checked, other object name is table rigid body “is Kinematic” checked. while both have attached a box collider. Problem is when character collides with the table first time it is stopped, but second time it passes through it. what I am missing here?

While it turns out that I was missing something. In the collider setting by default in 2D game settings Z component is 0, which was causing the problem, after setting a suitable value for the Z, collision detection works just fine.