Fixed a bug for get the current real variable value from a state