fixing getting member of nojn object error