Fixes a problem with chaining.