Remove flags from messages before copy