diff --git a/src/Controller/UsersController.php b/src/Controller/UsersController.php
index <HASH>..<HASH> 100644
--- a/src/Controller/UsersController.php
+++ b/src/Controller/UsersController.php
@@ -368,6 +368,7 @@ class UsersController extends BackendAppController
         if (!$this->request->isAll(['ajax', 'post'])) {
             throw new MethodNotAllowedException();
         }
+        $this->viewClass = null;
         $this->request->session()->renew();
         $this->set([
             'status' => 200,
set viewclass to null in heartbeat action