fix #224 (reconnect broken)