Fixed issue modifying tags