fix creating ways duplicate node bug, and connecting to existing way-node bug