Fix zip bug and debug bug