Fixing some publishing functions.