fix outdated attribute in demo