simple fix to use a local variable instead of repeating the code to get the value in the local
Committed patch as is.
Committed patch as is.