fix case clause