fixed error causing enemies to stop shooting