diff --git a/OLEDDisplay.cpp b/OLEDDisplay.cpp
index 2161d3e34ca0c957c181de60cc9a20da4d03f4d9..2be2414e36101405ace72d69d2379651bf8d961d 100644
--- a/OLEDDisplay.cpp
+++ b/OLEDDisplay.cpp
@@ -130,8 +130,8 @@ void OLEDDisplay::drawRect(int16_t x, int16_t y, int16_t width, int16_t height)
 }
 
 void OLEDDisplay::fillRect(int16_t xMove, int16_t yMove, int16_t width, int16_t height) {
-  for (int16_t i = yMove; i < yMove + height; i++) {
-    drawHorizontalLine(xMove, i, width);
+  for (int16_t x = xMove; x < xMove + width; x++) {
+    drawVerticalLine(x, yMove, height);
   }
 }