fix an issue with refreshing resources
review changes
Merge pull request #2624 from devoncarew/devoncarew_fix_refresh

fix an issue with refreshing resources