fix get_attribute source attrs loop