set published and opened to not null