fix scripts var