Fix erroneous setting of type attributes

Another instance of setting the type attributes by mistake.