fix a bug in hero lose for enemies