fix daemon problem