[Refactoring] Fixed smart tag bounds.