Line tracing bug fixed