Change setValue to use checked element access
(#380)