fix case priority