Fixed save draft and publishing bug.