Corrected error.

Corrected error that kept the final script from running to completion.