Fix <stdexcept> problem in ct-overlap-code