bug fixing so correct set of cond pattern bases is returned [ci skip]