Fixed a bug in ROI calculation