Fixed bug while appending points to the skeleton lines