Fix resource and reuse smaller class