fix wrong format setAttributes