Fixed bug of not copying messages