fixing getFromRefOfRun issue

The method stored the previous value once but then forgot it which led to a problem for the 3rd call to it with the same record.