[PATCH] to improve case management in search routines.