fix issue with enemy destory loop