Fixed ConcurrentModificationException during tree loading