Fix bug associated with staticValue attribute