Fix warning
Fix mime type management