Fixed daemon startup