fixed bug so new threads can be created again