Fix domain and range and display resources with template