Fixed bugs in !query_map_name() call.