corrected set primitive value