Fixed bug with editing pins