fix categories behavior