fix for onAssign methods (flags and attributes)