Correct $value reference

Just a small change, but I hit it when trying your examples.