Fix message publish in queue