Bugs fix
1)in merge correct g
2)pass the correct argument in managestatistic