Fixed printing issues with Tries