Fix problems publishing resources