diff --git a/lib/models/Vote.php b/lib/models/Vote.php
index 9c81b2dc868a28aaf06944ce8d2c4cd52c29095c..d3d6d75c01b14ef523320c6f4e324cdf693ebdbb 100644
--- a/lib/models/Vote.php
+++ b/lib/models/Vote.php
@@ -5,7 +5,7 @@ class Vote extends QuestionnaireQuestion implements QuestionType
 {
     public static function getIcon(bool $active = false) : Icon
     {
-        return Icon::create(static::getIconShape(), $active ? 'clickable' : 'info');
+        return Icon::create(static::getIconShape(), $active ? Icon::ROLE_CLICKABLE : Icon::ROLE_INFO);
     }
 
     /**
@@ -32,7 +32,7 @@ class Vote extends QuestionnaireQuestion implements QuestionType
         $questiondata['description'] = \Studip\Markup::markAsHtml(
             \Studip\Markup::purifyHtml($questiondata['description'])
         );
-        $questiondata['options'] = array_filter($questiondata['options']);
+        $questiondata['options'] = array_filter($questiondata['options'] ?? []);
         return $questiondata;
     }
 
@@ -49,6 +49,7 @@ class Vote extends QuestionnaireQuestion implements QuestionType
         $answer = $this->getMyAnswer();
 
         $answers = Request::getArray('answers');
+        $userAnswer = 0;
         if (array_key_exists($this->getId(), $answers)) {
             $userAnswer = $answers[$this->getId()]['answerdata']['answers'];
             if (is_array($userAnswer)) {