fix issue 5: Conversion from index to point and vice versa