Fixes bug with mimeType