How to fix my character not taking damage when he crouches and changes collision?

Can you post your code for changing collision shapes? Do you get any warnings?

Make sure to paste code, not screenshots.