Fixed broken $this reference