auto update nested keys
Remove some redundant nested key processing