Fixed bug with map searching.