fixing auto publish