Fixed bug : wrong position of pin while drawing connection