fixed bug where segments were not updated when analyses were removed

Change-Id: I5f12fe8b77c38835c6a69eb90f30e939142ed1b4