fixed error in setting operator