fixed bug in threaded postprocess