undefined was not checked on _publisher variable