Fix for proper saving of data for standard variables with hidden id name pair

Post commit code review : Daniel Jao