publish retain fix