bug fix in service start.