Fixed handling of broken archives