bug fix daemon clean