fixed edge connection problem