Fixed the bug causing pins to duplicate on top of one another;