Change mimetype to simple int type