Small bug fixes. Multiple contour windows for multiple detectors