Recalculating collisions when bitmask changed

Hello,
Is there any way to force the Cocos to recalculate collisions when the collision bitmask for an object is changed. I currently have an object that can switch between two bitmasks. Whenever this happens the colliders that the object already intersects don’t register a collision till the object is moved .

Thank you.