fix script vars