Fixed the bug of printing the frontpage listing