Fixing empty table, graph when first loaded