fix the extrain_train double return problem