fix for attending, issue #239

fix for attending, issue #239