fix a performance issue when removing projects
Merge pull request #3011 from devoncarew/devoncarew_fix_performance_issue

fix a performance issue when removing projects