Fix the issue in SweepMapper.