Fixing publish bugs