fix spawn worker when commandline