fixed bugs in tree layout for filter conditions