fix for invalid criteria