fixed publisher method self. not defined bug