Fixed the problem with authentication dialog box.