Fixing issue with graph on Safari and possible other browser's