Fixed the bug that allowed multiple validate threads