                         }
                     }
                 } else {
-                    self?.showUnexpectedErrorAlert()
-                }
-            }
-        }
-    }
-
-    fileprivate func showUnexpectedErrorAlert() {
+                    self.showUnexpectedErrorAlert(on: self)
+                }
+            }
+        }
+    }
+
+    fileprivate func showUnexpectedErrorAlert(on viewController: UIViewController) {
         let alert = UIAlertController(title: TalkPageLocalizedStrings.unexpectedErrorAlertTitle, message: TalkPageLocalizedStrings.unexpectedErrorAlertSubtitle, preferredStyle: .alert)
         let action = UIAlertAction(title: CommonStrings.okTitle, style: .default)
         alert.addAction(action)
-        present(alert, animated: true)
+        viewController.present(alert, animated: true)
     }
 
 }

        
        viewModel.postReply(commentId: commentViewModel.commentId, comment: text) { [weak self] result in

            switch result {
            case .success:
                self?.replyComposeController.closeAndReset()
                
                // Try to refresh page
                self?.viewModel.fetchTalkPage { [weak self] result in

                    switch result {
                    case .success:

                        }
                    }
                } else {
                    self?.showUnexpectedErrorAlert(on: composeViewController)
                }
            }
        }
