Fix resource template