Correct bug that causes bars of previous canvas to be displayed if a new tree is made