fix Writer#publish() throw