Fix bug
move ErrorCheck.filter to PluginManager.filter
Various clean up