bug fix for attributes