fixing segment controller.