Fixed a bug in the visual parse tree