Fixed a couple syntax errors that became apparent while running the sweep_script.