fix incorrect reference for non-schema attributes