Bugfix with mimetypes