Weird RM2K3 Battle Glitch

So, some of you may remember me. I Got RPG Maker 2003 off Steam and a Degica refund, everything's fine there. However, I noticed a weird bug. In my game, I have a gauntlet of enemies. On my saved testing file, I defeated the Lost Ruins 2 troops and then my max HP and max MP was reset to 1 and 0 respectively. If you can help, then I can finally rest in happiness in knowing that my game isn't messed up.
Righty then, realized that it was because I used a surprise/back attack. Why? And what can I do to prevent this?
Tech support is for getting the engine to work."How do i...?" Queries fo in the Support forum for rhe engine you use
Moved to: RPGMaker 2003/move]
It's weird. It really seems to be a bug to me. There's any way we can take a look at the game source?

Original thread: https://forums.rpgmakerweb.com/threads/weird-rm2k3-battle-glitch.76878/