fix category page problems, fixes #9