fix for last commit (rejection fix on systems with many threads)