Fixed bug in atom_add.