worked out bug in sidebar with duplicating categories