fixed bug in point spacing issue