fix WarningPolicy setting