pub reconnect fix