trees: cleanup join trees