fix to daemon