Removed $this in static function, bugfix