Fixed threading issue with refactormodlist.