fix issue with filtering unique values