Fixed autopublishing in delete