corrected error in mime-type function