Script error corrected