[PATCH] Fix invisible threads problem