diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index c2ccda6c84..98f40de5b8 100644 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -349,7 +349,7 @@ class Helper $total_colors = count($colors); if ($index >= $total_colors) { - $index = $index - $total_colors; + $index = $index - $total_colors - 1; } return $colors[$index];