Thanks for your rating, and for pointing out that bug. It looks like the HP resets in the wrong moment, and enemies are still able to shoot you (and obviously they should not be able to).