Custom tag border fix

* Updated the variable name changed while cleaning the for loops.