diff --git a/advagg_font/advagg_font.module b/advagg_font/advagg_font.module
index fcc7973..a6780c6 100644
--- a/advagg_font/advagg_font.module
+++ b/advagg_font/advagg_font.module
@@ -221,6 +221,9 @@ function advagg_font_get_replacements_array($css_string) {
     // Parse values string into an array of values.
     $values_array = explode(',', $values_string);
 
+    // Advance position for the next run of the while loop.
+    $property_position = $end;
+
     // Values array has more than 1 value and first element is a quoted string.
     if (count($values_array) > 1 && (strpos($values_array[0], '"') !== FALSE || strpos($values_array[0], "'") !== FALSE)) {
       // Save the first value to a variable and trim it.
@@ -300,9 +303,6 @@ function advagg_font_get_replacements_array($css_string) {
         $next_value_original,
       );
     }
-
-    // Advance position.
-    $property_position = $end;
   }
   return $replacements;
 }
