Fixing a bug where the latest message isnt marked as read