fix for runtime error (dictionary changed size during iteration) on plugin
alias: detection