fix usermode threading