Fixed tree positioning after applying case rules