fixing modSearch bug