Fix resources and sort out indenting for resources.