Fix reset of 'rich' attribute