some fixes in enemy script