fix defer error
fix defer error
integrate all git stat