Fix mime type variable as reference.