fixing smooth area calculation

Selection is ok, the calculation for B seems to have some problems.