Fix annotation compare condition