fixed returning wrong iVar in demo