fix issue with getValue method