fixed daemon issue