hotfix for calculated fields in toArray