Fix the alignLine stopColor logic by removing the tight inner loops