fixed returning wrong ivar in demo