Fix errors from commits that changed buildList function