daemon: make sure msg flags be initialized