fixed if a location was not on the graph