fix error on setValue