Fix leaf layering issue.