Fix new resource attributes assignment