fix atom and bond indexes for correct saving mol format