Fix clearing last tag.