Fix building Text object (thanks @vess)