Fixed error on setting anneal_length to 0

This allows the user to eliminate the annealing phase.