Fixes improper use of "this" in closure.