fix bug about mapoutkey and mapoutvalue classes