fixed dynamic connectivity demo, bug introduced due to spectrum api changes