Fix problem with totalCountr result attribute