Fixed bug in index_to_point.

int + bool does not work except if int = 0 or 1.
Hence, index_to_point was not working.