fix typo in rev-list loop