Fix: $tex was not updated when loading expression from inputhash