Added in missing new_resource typo
Fixed variable typo