Corrected color errors when drawing lines.