fix bug with segment index page failing to load after creating new segment