fix error in hull point indexing