bugfix: setting 'this' in var 'that' to avoid error.