hotfix: fix ommited $this->resource