fix bug in script command