fixes #13
fix tree shorting