Fix bug with segmented controls and modal presentation