Fix ConcurrentModificationException

Fixed an issue where an overlapping variable name was causing a CME.