fix mime-type bug