View reduce function not working as expected

I think i found the issue. The problem was that i was not handling re-reduce properly.