set unpublished to null instead of 0