contents totalcount bug fix2