attrbute access bug fix