fix the bug for posts dispaly