Fix flag_reason API exporting value