fixed error in atom parser