fix mime-type for compatibility