Update for graph to work on safari