Found that make_bonds.py doesn't work for nested chains.