Fixed what looks like a copy/paste error in incrementing resource numbers.