Fixing bug where non-json files were read as sessions.