fixed bug when enemy follows null path after player dies