Minor bug fixes for storing points.