fix case comparison