fixed onHitEntity infinite loop.