Fix resource deletion (dataset id was not found)