fix bugs for new post