Revert "Fix thread variable error"

This reverts commit 9b919b255ea00b2f1785a947b63a8b7c4076ff07.
diego test