debug the history data's code.