fix for total count in links