Fix a bug in which variables in prereq lists would get modified.