bug fix on daemon start