corrected script issue