fix daemon issue