fixing issue with clear all messages