daemon debug mode fix