Fix the issue in sweep tool.