fixed unfinished publishing issue