Use iterate() instead of list()
Fixing template