Fixing mistyped resource types in chaining