Log system and chat messages fixes