I feel that it's a bug, you might want to reach out to Soba devs on their discord to troubleshoot, it's an upsetting issue.
Good job! I like the coin mechanics and the "biome" transitions, from a cave, to a sort of forest, to the end goal of the castle!