Fixed bug with messages per chat