fix mime type guessing