fixed the bug from previouse commit. However, the fix was making a copy prior to creating the second thread. There may be a better fix.....