script var fix