Fix multi-occur compatible problem.