Fixes a with clause chaining error