Weird crouch clipping when I stand up, but then it fixes itself

If I try to clip into the object while walking, I can’t (it works correctly). If I crouch under it and then stand up, I clip into it (the collision stays as crouched). But if I walk out of the object, the collision fixes itself back to standing

nvm found the answer

if anyone needs it, linetrace from your character’s head up and dont allow standing up if something is near