Fix bug on select chat with no messages