fix bugs in script.class #2