Fixing tree refreshing