Fixed recursion in ShortestCI