fix for publish