Fixing getMIME() to return the correct MIME type