Fixed client using wrong key when re-connect.