bug fix for atten