fix heroCollisionDetect and enemyCollisionDetect