Fixing new resource's type