Fix regression with text objects.