fixed error, that caused unresponsivness through thread selection