fix references to this

3 functions have references to `self` rather than `this`. This pr fixes them