Fix bug with unconstrained category search