apply valid media type on restore