fixed bug in has_unpublished detection