Fix the list contexts loop