fix bug in staged resource rollup