fix valid() in 7z format