fixes iteration tree