fix infinit key negotiating loop.