fix clean and daemon