#130 support check total matric value and fix some bugs