fix spelling of resource in error object