fix for use outside a ThreadGroup