Fixed issue of no waiting for threads finishing