sweet-lib: fixing category-based solution