add check fail and end section method, fix a bug on reseting section_total count