Set tag variables otherwise doesn't update correctly