sval: fix a bug in remove_range_sval()