Missing bind for two debug statements

`this.debug` was called without rebinding `this` in a place where it was defined incorrectly.