fixed bug in postprocess