Fix inverse car/tree equation bug