fix Atom IDs