Fix errors for resource transformation