fixed $this in non-object context