Correct tags variable reference