Fix various bugs, most importantly make sure the cage node is properly updated when the config changes.