Fixed bug with iteration in functionList init method