fix $this to self scope