fixed graphs from giving warnings in certain cases