Fix media creation.