bug fix in getValue()