Fix the JS error on point update