correct a bug to add and remove nbpoints in perlin animation