fixed instance variable error