fixed toPublish index field so it only references MD that have not yet been published