Fix clear/copy flags for "set"  method
Remove unnecessary flags