fix get attribute length