fixing the flag messages