fix missing enumerate call