Fixes issue with automatic use of wrong identity when connecting to new servers after automatic reconnect.