Fix index issue on YamlScalar