wrong getValue method called