Fixed chance for "Divide by zero error" in pop.c