Fixed run in thread