fix bugs when there is no posts in board