bug fixed: read_chat_data.