Fixed a bug in sdcview