Closing node issue in pen tool