Fixed the issue of daemons starting too early