Fix bug when using zip archive.