fixed exception error when reconnect