Fix bug in flee behavior.