fixed small bug in 2d combination