Fixes falling back to deafult MimeType.