Fixed encounter problem.