fix type of a set value