Correct datatrees generation.