Fixed a bug in placing points.