Fixed a bug when doing an insensitive search