fix bug in publishers adding duplicate activities