More robust tag editing.