You should switch to using the texts library instead of manually working with text objects.