fix bog in warning mod