Fixed the bug that searching was not case insensitive.