bugfix

Fix bug where running .replace screws up the message's class