fix instance var error