fixed $this call within a static method