fixed call to getvalue