Added fix for printing tree

Added fix for printing tree