fix the resource