fix a case sensitive comparison