I think 'name' here needs to be escaped via `KT.utils.escape(name)`