Fix check for multiple file segments.