minor fixes for category utils