Fixed a Bug in mapsearch