Fixed mimetype bug