Update to getValue function.

fixed sintax.