fix for pet battle stack ovrflow