Correct calculation of parameters inside ROI;
GUI Bugs fixed