WYRL: possible bug fix for bags