Fixed boundary bug in junction analysis.