Remove write operation from inside the publish function per Arunoda yelling at me :)