Fix $this when not in object context.