Fixed bad type assertion in resourceOffers