Modified the searchform to fix a bug