fixed bug in threaded import