remove onSelectionChanged callbacks before deleting the configInstance["config"]...