Fix deamonize()