Fixed download empty archive bug

This will fix issue #36