text method logic bugfixed in util.svg