correct void-variable error when publish-project