small modify to fix irregular line alternation code. (CR like mac)