Fix getNamespaces() usage, since it changed after it was first implemented