fix problems with categories