Fixed project id null issue on first publish