fixed b_agg handling at corner