fix missing 5 parameter in token factory.