fixes glitch on home page if there is no posts