Fix template for resource definitions