A small fix in the setter fcn.