fix daemon status handling