Fix a bug in getQAStats (redundant functionality removed)