Fix index name was not set as a true json path

Fixing the fix for the #1065