fixed weird republish problem