Fixed threading issue with refactormodlist.
Merge pull request #565 from RichardLake/FixedRefactorModList

Fixed threading issue with refactormodlist.