some fixes to issues caused by changes in previous updates. Bounds
checking in UnivariateDialog and BandRatioDialog