--- a/src/font.c
+++ b/src/font.c
@@ -199,7 +199,7 @@
unsigned int i = 0;
while (font_data->cache[i].name)
- { if (strcmp (font_data->cache[i].path,entry->path) == 0) break;
+ { if (strcmp (font_data->cache[i].name,entry->name) == 0) break;
i++;
}