fix attribute problem (#50).