fix valid() in rar5 format