Modified the report warning method to store a warning only once