merging visible tree fix