fix another small bug relating to damaging units