fixed incorrent attr setting