A fix for method chaining support.