fix bugs with stats viz