bugfix for case sniffer