Fix closure issue on loop variable, 'this' handling.