fix case compare