Corrected script