LoadTexture is bugging out my character collision

I’m working on ma first html game.
I wanted to add sneaking, so I just made a smaller version of the skin and used loadTexture,
but once I perss the sneak key it changes the texture and the player falls through the map (exept if he jumps, then he floats above the ground).

Check the game out on Itch.io to see the bug and/or visit github for the source code

Nvm, fixed it with: this.hero.body.height = 18;.
For everyone with a similar problem, just replace this.hero your sprie