Fixes bug for no graph with no records