Small fix in updatePoints function
Merge origin/master