Add some band-aid to valid() in sxc format.