Fixed stupid error in atom implementation.