Fixed bug when messages are not refreshed, in some cases.