fix redirect bug in script.class->get method