Fixed bug where polygons were not updating when using search