lexoyo , I already found the reason. If this might be useful for someone, I used non-latin characters when I was naming certain pages, and when I downloaded the file, these html pages saved with no name, so when I downloaded and unpacked the zip file, empty html names were recognized as identical and only one got saved, this messed up the structure.
Sorry for bothering, appreciate your help