Fix the attachment of view modes.