fixed bug
Merge branch 'sortedInputIterBug' into ctxAnalyzing