bad $this reference