FIX: bug in __cleanCache (dict modified in loop)