Fixed deletion of messages.