Honestly I haven’t attempted to fix that method since it broke some engine versions ago. Now I just use Rama’s plugin.
Runtime DataTable : Import and export game data to and from CSV or Google Sheets while your game is running!
easyCSV : Read data from any CSV and put them in an easy-to-access string map!
iTween : Free, smooth, procedural object animation