Fixed TreeIndexLogic so A-C => A

instead of A-C => C