Fixing variable filtering errors on import and when viewing values if the index of variable is not yet updated for the newly created table