Fix the point using Union-find