Fix issue where an enemy stopped moving and got stuck at an dead end while running away