Fix bug caused by Knockout referring to wrong `this`.