fix iterator can not go back to the first record problem.