fix case matching