fix reduce method

sometimes rereduce is called and so it's important to keep
returns from reduce uniform
adding build select pager above bar chart