Fix removing of old messages.