Fix a bug in SDV.