Fixed some problems with one-edged relations
Fixed some problems with one-edged relations (II)