fix catch in bucket examples