fix script command errors