Fix bug in minion_publish repair