Fix log button if map plot has additional lines in it