fixed areaMode=all regression (0.9.x)

Cherry-pick areaMode=all fix for `0.9.x` from f7c45f9838c5213bfc5812d3249fb9bc6e93bb1f from #307.