bug fix when post processing