fixed bugs in result statistics