fix threaded histogram