fix reverting tag values

broke with dc0a6576