Problem with Table-Load-Save library

I’m using this Table-Load-Save library and I can save and load data fine. But when I try to save again it gives me an error. Now, the error might not be obvious because basically I have a code that prints the table that has been saved and the error says:

bad argument #1 to 'pairs' (table expected, got number)

This only happens when I try to re-save after successfully saving and loading once, and it also gives an error when re-launching the app afterwards. 

                    

Can you share the code you’ve written as I doubt it’s a problem with the library itself.

Thanks for your help. I figured it out.