fix small typo in resource class