bugfix: autoPublish was mapping internal data, not just the published data