fixed issues with associating segments