Fix names.json generation