fixed bug when taking over enemy