[Path drawing] Problem with closing a path . Endpoints do not merge into one.