Bug fix in map_controller, method "query"