Removing from the query a variable not used on the map