Corrected exception in script.