fixed $this call in static function