Fix leftover, unnecessary type(self) in resource.