--- a/src/internfile/mimehandler.cpp
+++ b/src/internfile/mimehandler.cpp
@@ -127,7 +127,7 @@
 {
     LOGDEB(("clearMimeHandlerCache()\n"));
     typedef multimap<string, RecollFilter*>::value_type value_type;
-    map<string, RecollFilter *>::iterator it;
+    multimap<string, RecollFilter *>::iterator it;
     PTMutexLocker locker(o_handlers_mutex);
     for (it = o_handlers.begin(); it != o_handlers.end(); it++) {
 	delete it->second;