fixed a bug in subcircuit library with cells that have connections to itself