fix reloading in daemon