Fix rename driven mime type switch.