small fix in junction processing