Fixed bug when specifying case insensitive search