fixed mvar reference to protect the value while reading it