Fixes right-click on li in the tree