hacks to fix incorrect mimetype