fix list enumerating