Fixed svg line drawing race condition.