fixed dialog NPE