fixed some small, but problematic issues with indented tree