diff --git a/imagecache_token.module b/imagecache_token.module
index adabe04..488a162 100644
--- a/imagecache_token.module
+++ b/imagecache_token.module
@@ -94,7 +94,7 @@ function imagecache_token_tokens($type, $tokens, array $data = array(), array $o
           $output[] = $field[$attribute];
         }
         else {
-          $output[] = image_style_url($token, $field['uri']);
+          $output[] = image_style_url($type, $field['uri']);
         }
       }
       $replacements[$original] = implode(', ', $output);
