Procedural trees and bug fixes