Fix generate address for pocket.