Fix published and draft bug