Fixed problem with generated points