fix error in demo 12