fixed daemon build