Fix MIME type computation