fix daemon