fix wrong attribute values