Fix small bug in YamlLoader.