Fix 'resource' spelling in the code as well