Fix a bug with ID generation and Inband registration