fix condition CRUD bug