Fixed togglePoints bug