Fix bad loop end condition for unzip.