Fixed issue if there are no posts on home page