fix bug with messages setAsCopy