core: bugfix wrt data/attr access