Improve generators zero_crossings check.