script order fix