Fixing a Resource bug