Fix setValue to work correctly when an object passed.