Fixed issue with building symbol trees