Fixed get_locations to work with Atom.