fix statsComponent missing value bug, add test