fix criteria condition