Fixed error in reshaping ROI parameters