Fix `this.` in class definitions not working