fixed bug involving nullPointerExption when there are less than 3 way to a single station