fixed bug with new messages addition