fix possible crach when 'Server Authentication' dialog viewing for a long time