Fix reference issues with "this".