fix null chat bug, replace data_id with parseInt(chatId),