fixed bug in summary tabulations