Fix offer-related functions