Fixed bug in deleting old messages.