add missing id attribute in media field