fixed duplicate graphs