fix the redundant ending blank bugs in post-process