Fixed bug with saving the points and displaying the points