Fix ZTS - and all the segfaults

We were reading it like good puppies.. But never assigning it! :D