Fix condition test bug of orm.get()