fixed dialog fragment instantiation bug