Fix bug where the registration IDs were not being updated