Fixed a bug when getting scd attributes