fixed glitch with context() in publish-all function