Correctly remove duplicate points from output of RDP