Bug fix for saving default variable value.