fix pre-publish