Update zimpatch.cpp

Another bug. All bugs except the cluster number bug  have now been fixed.