Bug fixed: inner function inside UnmarshalYAML can be called several times