Fixing local reference bug (RegressionTesting/LocalReferenceBug.bf)