corrected script error