fix case name cache checking