Fix multiple resources release issues