the indexes of the atoms is wrong in bonds