Fix in getStateProperty method