Fix an issue with building bonds
Fix an issue in molecule.py