Fix category check to work with customer group check.