fixing runtime error when offerings is empty