Fixes flag being put without message.